package com.my.hotel.service.impl;

import com.my.hotel.entity.Hd;
import com.my.hotel.entity.Log;
import com.my.hotel.mapper.LogMapper;
import com.my.hotel.service.LogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LogServiceImpl implements LogService {

    @Autowired
    private LogMapper logMapper;

    public void addLog(Log log) {
        logMapper.addLog(log);
    }

    public List<Log> getList() {
        return logMapper.getList();
    }
}
